<script setup lang="ts">
// 需求: div中放置3个p标签 p标签的内容是1 2 3
import { h, onMounted, render } from 'vue'
const p1 = h('p', null, '1')
const p2 = h('p', null, '2')
const p3 = h('p', null, '3')
const VNode = h('div', { id: 'header', className: 'title' }, [p1, p2, p3])
onMounted(() => {
  render(VNode, document.querySelector('#box')!)
})
</script>
<template>
  <div id="box">
    <!-- <h2 class="title" id="header">标题</h2> -->
  </div>
</template>



<style scoped>
</style>